package com.compass.doctor.ui.home.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.compass.doctor.R
import com.compass.doctor.databinding.LayoutExigencyItemBinding
import com.compass.doctor.databinding.LayoutVaServiceItemBinding
import com.compass.framework.adapter.BaseBindViewHolder
import com.compass.framework.adapter.BaseRecyclerViewAdapter
import com.compass.framework.model.DoctorUrgency
import com.compass.framework.model.VAServiceBean
import com.compass.framework.utils.DateUtils
import com.compass.framework.utils.getDrawableResource

/**
 * Description：
 * Date:2024/7/28 13:08
 */
class VAServiceAdapter : BaseRecyclerViewAdapter<VAServiceBean, LayoutVaServiceItemBinding>() {
    override fun onBindDefViewHolder(
        holder: BaseBindViewHolder<LayoutVaServiceItemBinding>,
        item: VAServiceBean?,
        position: Int
    ) {
        if (item == null) return
        holder.binding.apply {
            tvTitle.text = item.name
            tvContent.text = "规格：${item.spec}"
            tvPrice.text =  "￥${item.price}"

        }
    }

    override fun getViewBinding(
        layoutInflater: LayoutInflater,
        parent: ViewGroup,
        viewType: Int
    ): LayoutVaServiceItemBinding {
        return LayoutVaServiceItemBinding.inflate(layoutInflater, parent, false)
    }
}